Latest Questions

How to multiply three inputted numbers in assembly using emu8086?

I'm sorry for asking this without any code to show you, but my teacher assigned us to make something like this as a surprise quiz, and me and my classmates don'

How to add tailwind to a .less file

I have a gatsby project that uses .less as the CSS preprocessor, adding tailwind to it as shown in the docs does nothing @tailwind base @tailwind utilities @tai

With arrays, why is it the case that a[5] == 5[a]?

As Joel points out in Stack Overflow podcast #34, in C Programming Language (aka: K & R), there is mention of this property of arrays in C: a[5] == 5[a] Jo

Next.js is not recognizing '@types/react'

When I try to run my Next.js app with npm run dev I get an error message saying that I don't have the required packages to run Next with Typescript: Please inst

Is it possible to calculate the value after overflow?

I understand that if 1 is added to INT_MAX it will overflow and we will get the negative maximum. It is connected in a cycle. In the code below can I calculate

Providing an S3 upload task with AWS creds?

I'm currently using a service connection for this: - task: S3Upload@1 inputs: regionName: 'us-east-1' bucketName: 'bucket' sourceFolder: '

Mongoose query always returns empty array

Im trying to make a greater than query but it always returns an empty array. const productSchema = require("./productsSchema"); const getProductsGreaterThan

Angular Migration Error for Version 13.0.3

I got the following issue while upgrading from Angular 12 to 13.0.3. Using package manager: 'npm' Collecting installed dependencies... Found 79 dependencies. F

flutter TextField use cause KeyboardListener alway show keyboard on event

using KeyboardListener to gain barcode from scanner, i can't resolve a incredibly stupid problem. scanning first with keyboardListener work perfectly. events ar

How to use python to create and modify windows shortcuts

Based on most of the postings I have read, I need to import winshell in order to create a Windows shortcut using python. But I am running Anaconda python and wh

Api server rest with crow

I am implementing a server rest using Crow. In my code i want to do some action before sending the response. These action are complimented in another class. it

Error Running the Application on Android Mobile

I was working on a small flutter project suddenly I couldn't run the app to any android mobile. (on Web it's running Perfectly). It Shows this Error: Could

TypeScript type for all derived interfaces

I have an interface inheritence hierarchy like this: interface IBase { type: stirng; } interface IDerived1 extends IBase { type: "Derived1"; } interface IDerive

Dynamically add textfields with a for each loop and a button in swiftUI

I am trying to use a ForEach loop to dynamically add textfields inside a form section with a button. Form { ForEach(0..<numberOfItems, id: \.

How to convert movies in mkv to mp4 in colab

I tried converting a mkv movie in my Google drive to mp4 so I can stream play it with Google drive player, so I used a popular ffmpeg colab note book and I got

How to get python backtraces for python in valgrind

I'm trying to find a file descriptor leak in python code with valgrind but the backtraces look like this: ==2169309== Open file descriptor 11: ==2169309== at

Execution failed for task ':vision-camera-code-scanner:checkDebugAndroidTestAarMetadata'

So I have been at this for a while now, I recently tried to add Detox tests to android in my react native projects. I followed the official Detox tutorial and t

Building kernel with `-save-temps`

I'm building the Linux Kernel with the gcc options -save-temps in order to see exactly how all the C files get preprocessed. I followed the instructions here, b

How to use multiprocess when input is a torch.tensor with gradient?

import torch.multiprocessing as mp import torch import time class test(): def __init__(self,X,Y): self.X=X #.share_memory_() self.Y=Y

how to repeat a block of code in bigquery for multiple columns?

I would like to repeat a block of code with a complex operation (defined in a subquery) for many columns in bigquery. I cannot find a better way than copy and p

Compiles in CMD line fine with GCC but Visual studios "expression must have constant value" [duplicate]

As title states the code compiles and outputs in the GCC just fine, I want to step by step follow the code in visual so I can make sure I full

Azure Synapse Serverless CETAS error "External table location is not valid"

I'm using Synapse Serverless Pool and get the following error trying to use CETAS Msg 15860, Level 16, State 5, Line 3 External table location path is not valid

Could not get version for google-chrome with the command: powershell "$ErrorActionPreference='silentlycontinue' using WebDriverManager with Selenium

When running a python script with selenium and chrome driver I am getting the error below. I use the script in question for some a pretty simple automation runn

Should PATH contain directories or full paths to binaries?

I am trying to set up a correct PATH, but I'm wondering what it should contain. If I have /usr/bin/ls /usr/local/bin/ls and I want to prefer the one in /usr/

nexus not accepting metadata file upload from maven

I setup a docker nexus with this docker-compose.yml: version: "3" services: nexus: restart: always image: sonatype/nexus3 container_name: nexus

Plot timeseries whit seaborn

I want to plot these 4 time series through the seaborn Library in Python: Thank you for your help totalcc=[cluster_center_1 ,cluster_center_2 ,clus

Checking if the entered date is the start of a quarter

Good afternoon! Can you please tell me how to implement a function that checks if the passed date is the beginning of the quarter? I tried to implement validati

Is the fill clause incompatible between versions 0.12.5 and 0.13 in the Apache IoTDB?

The sql statement below select sum(jiangyuliang) from root.disaster.sd.* where time>=2022-05-01T08:00:00 and time<=2022-05-01T23:00:00 FILL(0) align by d

Telegram bot - How can I create a popup message?

Thanks for reaching this feed. I would like to request the method/example/API doc for the popup "Spin Wheel" (see below image) in the Telegram doc. I have tried

how to make rest api private and just can called from api gateway server

How to make my rest api accessed from my api gateway only so another people cannot access directly e.g: curl http://ip:port/enpoint so how to make that rest ap